﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace CudaCluster
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            CudaCalls.CallCudaFunction cc = new CudaCalls.CallCudaFunction();
            int init = cc.Call_init_cuda();
            if (init != 0)
            {
                MessageBox.Show("Sorry, a CUDA device was not found. Cannot continue.", "No CUDA Device",
                    MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}
